package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 打卡表对象 sys_clock_in
 *
 * @author ruoyi
 * @date 2025-11-01
 */
public class SysClockIn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    private Long id;

    /** 用户姓名 */
    @Excel(name = "用户姓名")
    private String username;

    /** 签到 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "签到", width = 30, dateFormat = "yyyy-MM-dd")
    private Date morningTime;

    /** 签退 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "签退", width = 30, dateFormat = "yyyy-MM-dd")
    private Date afternoonTime;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setUsername(String username)
    {
        this.username = username;
    }

    public String getUsername()
    {
        return username;
    }

    public void setMorningTime(Date morningTime)
    {
        this.morningTime = morningTime;
    }

    public Date getMorningTime()
    {
        return morningTime;
    }

    public void setAfternoonTime(Date afternoonTime)
    {
        this.afternoonTime = afternoonTime;
    }

    public Date getAfternoonTime()
    {
        return afternoonTime;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("username", getUsername())
                .append("morningTime", getMorningTime())
                .append("afternoonTime", getAfternoonTime())
                .append("status", getStatus())
                .toString();
    }
}